package com.nation.serviceImpl;

import com.nation.dao.PoliticDao;
import com.nation.domain.VPoliticsAndMilitary;
import com.nation.service.PoliticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/3.
 */
@Service
public class PoliticServiceImpl implements PoliticService{
    @Autowired
    PoliticDao PoliticDao;
    @Override
    public List<VPoliticsAndMilitary> findAllPolitic() {
        return PoliticDao.findAllPolitic();
    }

    @Override
    public VPoliticsAndMilitary findByCountryCode(String country_code) {
        return PoliticDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean updatePolitic(VPoliticsAndMilitary VPoliticsAndMilitary) {
        return PoliticDao.updatePolitic(VPoliticsAndMilitary);
    }

    @Override
    public List<VPoliticsAndMilitary> findPoliticByLimit(Map<String, Object> map) {
        return PoliticDao.findPoliticByLimit(map);
    }

    @Override
    public Boolean insert(VPoliticsAndMilitary VPoliticsAndMilitary) {
        return PoliticDao.insert(VPoliticsAndMilitary);
    }

    @Override
    public List<VPoliticsAndMilitary> findByCondition(Map<String, Object> map) {
        return PoliticDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return PoliticDao.delete(pk);
    }
}
